Xamarin.Android | ComponentOne
C1.Android.Grid Assembly / C1.Android.Grid Namespace / GridRowColCollection<T> Class / IndexOf Method / IndexOf(T) Method
The object to locate in the IList.


In This Topic
    IndexOf(T) Method
    In This Topic
    Determines the index of a specific item in the IList.
    Syntax
    'Declaration
     
    
    Public Overloads Function IndexOf( _
       ByVal item As T _
    ) As Integer
    'Usage
     
    
    Dim instance As GridRowColCollection(Of T)
    Dim item As T
    Dim value As Integer
     
    value = instance.IndexOf(item)
    public int IndexOf( 
       T item
    )

    Parameters

    item
    The object to locate in the IList.

    Return Value

    The index of value if found in the list; otherwise, -1.
    See Also